<!--
  描述：员工合同信息table页
  @author tanghongjun
  @since 2020-05-14 10:48:18
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead >
        <tr>
            <!--规定复选框列置于第1列，居中显示-->
            <th lay-data="{field:'contractId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>

                            <th lay-data="{field:'contractId', unresize:true, align:'center'}">主键</th>
                            <th lay-data="{field:'staffId', unresize:true, align:'center'}">员工ID</th>
                            <th lay-data="{field:'fristContractTime', unresize:true, align:'center'}">首次合同签订时间</th>
                            <th lay-data="{field:'fristContractValidityPeriod', unresize:true, align:'center'}">合同期限</th>
                            <th lay-data="{field:'fristContractEndTime', unresize:true, align:'center'}">首次合同到期时间</th>
                            <th lay-data="{field:'fristContractNumber', unresize:true, align:'center'}">首次签订合同编号</th>
                            <th lay-data="{field:'contractTimeNow', unresize:true, align:'center'}">首次合同签订时间</th>
                            <th lay-data="{field:'contractValidityPeriodNow', unresize:true, align:'center'}">合同期限</th>
                            <th lay-data="{field:'fristContractEndTimeNow', unresize:true, align:'center'}">首次合同到期时间</th>
                            <th lay-data="{field:'contractNumberNow', unresize:true, align:'center'}">现签订合同编号</th>
                            <th lay-data="{field:'contractTimes', unresize:true, align:'center'}">合同续签次数</th>
                            <th lay-data="{field:'creater', unresize:true, align:'center'}">创建人</th>
                            <th lay-data="{field:'updater', unresize:true, align:'center'}">操作人</th>
                            <th lay-data="{field:'createTime', unresize:true, align:'center'}">创建时间</th>
                            <th lay-data="{field:'updateTime', unresize:true, align:'center'}">操作时间</th>
                        <!--规定操作列置于最后-->
            <th lay-data="{field:'操作', width:140, unresize:true, align:'center', fixed:'right'}">操作</th>
            <!--其他规范
                值较大的数字列居右显示，并使用千分号；值较小的数字列可居中显示，
                金额列统一居右显示，默认精确到小数点后2位，并使用千分号，
                通常情况下，时间或日期列靠后放置(操作列前)，居中显示
                -->
        </tr>
    </thead>
    <tbody>
        <tr th:each="item:${items}">
            <td ></td>
                            <td th:text="${item.contractId}">contractId</td>
                            <td th:text="${item.staffId}">staffId</td>
                            <td th:text="${item.fristContractTime}">fristContractTime</td>
                            <td th:text="${item.fristContractValidityPeriod}">fristContractValidityPeriod</td>
                            <td th:text="${item.fristContractEndTime}">fristContractEndTime</td>
                            <td th:text="${item.fristContractNumber}">fristContractNumber</td>
                            <td th:text="${item.contractTimeNow}">contractTimeNow</td>
                            <td th:text="${item.contractValidityPeriodNow}">contractValidityPeriodNow</td>
                            <td th:text="${item.fristContractEndTimeNow}">fristContractEndTimeNow</td>
                            <td th:text="${item.contractNumberNow}">contractNumberNow</td>
                            <td th:text="${item.contractTimes}">contractTimes</td>
                            <td th:text="${item.creater}">creater</td>
                            <td th:text="${item.updater}">updater</td>
                            <td th:text="${item.createTime}">createTime</td>
                            <td th:text="${item.updateTime}">updateTime</td>
                        <td>
                <div>
                    <a th:if="${#authPermit.checkPermit('/staff/staffcontract/addEditView.action')}" style="color: #00a0e9"
                       th:lay-href="|/staff/staffcontract/addEditView.action?${column.pkAttrname}=${item.${column.pkAttrname}}"
                       lay-text="修改"  text="修改">修改</a>&nbsp;&nbsp;
                </div>
            </td>
        </tr>
    </tbody>
</table>
